
org  0x7c00
 
 
entry:
    mov  ax, 0
    mov  ss, ax
    mov  ds, ax
    mov  es, ax
    mov  si, msg
 
putloop:
    mov  al, [si]
    add  si, 1
    cmp  al, 0
    je   fin
    mov  ah, 0x0e
    mov  bx, 15
    int  0x10 ;调用BIOS
    jmp  putloop
 
fin:
    HLT
    jmp  fin
 
msg:
    DB    0x0a,  0x0a
    db    "hello, liangyehao"
    db    0x0a
    db    0